<!DOCTYPE html>
<html lang="en">
<head>
    <style>
        .messages{
            background: #EEE8CD;
            padding: 5px;
            margin: 5px 0;
        }
        .messages .content{
            color: #ce8483;
        }

        .messages .name{
            color: #ec971f;
        }

    </style>

    <include file="public@head"/>
    <script src="/static/js/jquery.form.js"></script>
</head>
<body class="body-white">



<div class="container">

    <include file="public@nav"/>

    <form id="form" style="margin-top: 30px;" action="{:cmf_url('portal/message/inputMsg')}" method="post">
        <div class="input-group">
            <span class="input-group-addon" id="basic-addon1">昵称</span>
            <input id="name" name="name" type="text" class="form-control" required="required" placeholder="Username" aria-describedby="basic-addon1">
        </div>
        <textarea id="content" name="content" rows="10" style="margin-top: 10px;width: 100%;" required="required" placeholder="请在这里输入您的留言内容"></textarea>
        <div>
            <button id="btn" type="submit" style="float: right;width: 100px;" class="btn btn-success">发布</button>
        </div>
    </form>



    <div class="row" style="clear: both">

        <volist name="list" id="vo">
            <div class="col-md-3">
                <div class="messages">
                    <p class="number"><strong>留言编号</strong><span>{$vo.Id}</span></p>
                    <p class="content text-center">{$vo.content}</p>
                    <p class="name text-right">{$vo.name}</p>
                    <p class="date text-right">{$vo.date}</p>
                </div>
            </div>
        </volist>

    </div>
</div>


<script>
    $(function () {
        $('#form').ajaxForm(function () {
            location.reload();
        })

    })
</script>

</body>
</html>